package com.wushi.lenovo.asia5b.app_model.credit;

import com.mvp.base.model.BaseModel;
import com.wushi.lenovo.asia5b.app_utils.eye.PopupItemTextInterface;

/**
 * Created by zhangyuncai on 2019/1/20.
 */
public class BankModel extends BaseModel implements PopupItemTextInterface {

    /**
     * gl_acc_id : M001
     * bank_name : Maybank
     * icon_url : https://res.cloudinary.com/imageupload666/image/upload/v1546831808/test/fz59x99ynvoshu02ur5d.jpg
     * account_name : Asia5B Sdn.Bhd
     * account_number : 507095675570
     * url : http://www.maybank2u.com.my/
     */

    private String gl_acc_id;
    private String bank_name;
    private String icon_url;
    private String account_name;
    private String account_number;
    private String url;

    public String getGl_acc_id() {
        return gl_acc_id;
    }

    public String getBank_name() {
        return bank_name;
    }

    public void setBank_name(String bank_name) {
        this.bank_name = bank_name;
    }

    public String getIcon_url() {
        return icon_url;
    }


    public String getAccount_name() {
        return account_name;
    }


    public String getAccount_number() {
        return account_number;
    }

    public void setAccount_number(String account_number) {
        this.account_number = account_number;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String getText() {
        return String.format("(%s)%s", getBank_name(), getAccount_number());
    }
}
